Enable OSPF globally enabled to use the protocol on the router. If you disable OSPF globally, all OSPF actions cease.
Change the VRF instance as required to configure OSPF on a specific VRF instance. The VRF must have an RP trigger of OSPF. Not all parameters are configurable on non-default VRFs.